package com.dukk;



import org.geotools.api.data.DataStore;
import org.geotools.api.data.DataStoreFinder;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class PostGISDataStore {

    public static void main(String[] args) {
        Map<String, Object> params = new HashMap<>();
        params.put("dbtype", "postgis");
        params.put("host", "127.0.0.1");
        params.put("port", 5432);
        params.put("schema", "public");
        params.put("database", "testgis");
        params.put("user", "postgres");
        params.put("passwd", ".........");


        try {
            DataStore dataStore = DataStoreFinder.getDataStore(params);

        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println("########");
    }
}
